<?php

namespace app\controller;

use app\common\controller\Base;
use app\event\im\Chat as ChatEvent;
use app\event\pos\PosOrder;
use app\model\pos\Pos;
use app\model\pos\Pos as PosModel;
use think\facade\Cache;
use think\facade\Db;
use yicmf\tools\Rsa;

class Index extends Base
{
    public function index()
    {


//        $e = new PosOrder();
//
//        dump($e->timeoutClose([]));
//        PosModel::where('status',1)->whereNull('order_id')->limit(10)->update(['order_id' =>6]);
//        PosModel::where('order_id',2)->update(['order_id' => null]);

        return $this->fetch();
    }

    public function hello( )
    {
//        $event = new ChatEvent();
//        $event->timeoutTips();

        dump( Cache::get('worker_jobs_10797'));
        return 'hello,';
    }
}
